package org.fioma.tree.bytes;

public class BytesIndexed {

	byte[] word;
	int index;

	public BytesIndexed(byte[] word, int index) {
		this.word = word;
		this.index = index;
	}

	public byte[] getWord() {
		return word;
	}

	public int getIndex() {
		return index;
	}

	public void setWord(byte[] word) {
		this.word = word;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public int getLength() {
		if (word == null || word.length == 0) {
			return 0;
		} else {
			return word[0];
		}
	}
}
